{% extends "base.html" %}{% load staticfiles %}


{% block contentLeft %} 抽奖管理
    <small>Version 5.0</small> 
{% endblock %}

{% block contentRight %}

	<ol class="breadcrumb">
		<li>
			<a href="#"><i class="fa fa-dashboard"></i> Home</a>
		</li>
		<li class="active">抽奖管理</li>
	</ol>
{% endblock %}


{% block content %}


<form action="http://localhost:8000/drawJsonAdd/" method="post">
<input type="text" name="userid" placeholder="请输入用户id">
<br>
<input type="text" name="drawmoney" placeholder="请输入抽奖金额">
<br>
<input type="text" name="drawdetail" placeholder="请输入抽奖活动详情">
<br>
<input type="submit" value="提交">
</form>
<br>
<form action="http://localhost:8000/drawJsonDel/" method="post">
<input type="text" name="userid" placeholder="请输入要删除的用户id">
<br>
<input type="text" name="drawid" placeholder="请输入要删除的抽奖id">
<br>
<input type="submit" value="提交">
</form>
<br>
<form action="http://localhost:8000/drawJsonUpdate/" method="post">
<input type="text" name="userid" placeholder="请输入要修改的用户id">
<br>
<input type="text" name="drawmoney" placeholder="请输入余额">
<br>
<input type="submit" value="提交">
</form>
<br>
<form action="http://localhost:8000/drawJsonQuery/" method="post">
<input type="text" name="userid" placeholder="请输入要查询的用户id">
<br>
<input type="submit" value="提交">
</form>
<br>


<!-- 测试用查询快递单号按钮 -->
<input type="text" name="company" id="company" placeholder="请输入快递公司编号">
<input type="text" name="NO" id="NO" placeholder="请输入快递单号">
<button class="queryExpress">提交</button>

{% endblock %}


<script src="{% static 'layer/layer.js' %}" type="text/javascript" charset="utf-8"></script>
<script src="{% static 'js/jquery.form.min.js' %}"></script>
{% block script %}
<script type="text/javascript">

$(".queryExpress").click(function(e){
	
	var company = $("#company").val();
	var NO = $("#NO").val();
	console.log(company)
	myPost("express" , {"company":company , "NO":NO} , function(data){
			console.log("999999999999999")
		})
})

</script>
{% endblock %}

